package cn.kgc.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

/**
 * 这个类是用来封装数据库的记录的
 * 一个类对象表示一条记录
 * 类对象的属性是表的字段
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NewsDetail {
    private Integer id;
    private Integer categoryId;
    private String title;
    private  String summary;
    private String content;
    private String picPath;
    private String author;
    private Date createDate;
    private Date updateDate;
}
